.class Lcom/htc/android/footprints/activity/SettingActivity$2;
.super Ljava/lang/Object;
.source "SettingActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/SettingActivity;->onPreferenceTreeClick(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/SettingActivity;

.field final synthetic val$checked:Z


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/SettingActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 59
    iput-object p1, p0, Lcom/htc/android/footprints/activity/SettingActivity$2;->this$0:Lcom/htc/android/footprints/activity/SettingActivity;

    iput-boolean p2, p0, Lcom/htc/android/footprints/activity/SettingActivity$2;->val$checked:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 60
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SettingActivity$2;->this$0:Lcom/htc/android/footprints/activity/SettingActivity;

    #getter for: Lcom/htc/android/footprints/activity/SettingActivity;->mSetting:Lcom/htc/android/footprints/utils/SettingInfo;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/SettingActivity;->access$100(Lcom/htc/android/footprints/activity/SettingActivity;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v0

    iget-boolean v1, p0, Lcom/htc/android/footprints/activity/SettingActivity$2;->val$checked:Z

    iput-boolean v1, v0, Lcom/htc/android/footprints/utils/SettingInfo;->retrieveAddress:Z

    .line 61
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SettingActivity$2;->this$0:Lcom/htc/android/footprints/activity/SettingActivity;

    #getter for: Lcom/htc/android/footprints/activity/SettingActivity;->mSettingDb:Landroid/content/SharedPreferences;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/SettingActivity;->access$200(Lcom/htc/android/footprints/activity/SettingActivity;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "pref_retrieve_address"

    iget-boolean v2, p0, Lcom/htc/android/footprints/activity/SettingActivity$2;->val$checked:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 64
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 65
    return-void
.end method
